<script>
export default {
	onLaunch: function() {
		console.log('App Launch');
		const domModule = weex.requireModule('dom');
		domModule.addRule('fontFace', {
			fontFamily: 'iconfont',
			src: "url('http://at.alicdn.com/t/font_1859985_7mxozsfdvib.ttf')"
		});
		//监听底部导航中间凸起按钮
		uni.onTabBarMidButtonTap(() => {
			uni.navigateTo({
				url: '/pages/create-live/create-live'
			});
		});
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style lang="scss">
/*每个页面公共css */
@import url('/common/free.css');
@import url('/common/common.css');
/* #ifndef APP-PLUS-NVUE */
@import url('/common/icon.css');
/* #endif */
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import 'uview-ui/index.scss';
</style>
